package com.self.springframework.context.event;

import com.self.springframework.beans.factory.ConfigurableListableBeanFactory;
import com.self.springframework.context.ApplicationEvent;
import com.self.springframework.context.ApplicationListener;

public class SimpleApplicationEventMulticaster extends AbstractApplicationEventMulticaster{



    public SimpleApplicationEventMulticaster(ConfigurableListableBeanFactory beanFactory) {
        setBeanFactory(beanFactory);
    }

    @Override
    public void multicastEvent(ApplicationEvent event) {
        for (ApplicationListener listener : getApplicationListeners(event)) {
            listener.onApplicationEvent(event);
        }
    }
}
